package com.aizuda.boot.modules.business.permission.domain.request;

import com.aizuda.boot.modules.business.permission.domain.response.RawVo;
import com.aizuda.boot.modules.common.constant.enums.ValidityType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Author sangyirong
 * @ClassName DataPermission
 * @Version 1.0
 * @Date 2025/5/26 13:04
 */
@Data
@Schema(description = "数据权限")
public class DataPermission {

    @Schema(description = "权限名称")
    private String name;

    @Schema(description = "是否启用")
    private Boolean enabled;

    @Schema(description = "权限内容")
    private String content;

    @Schema(description = "有效期类型")
    private ValidityType validType;

    @Schema(description = "日期范围")
    private List<Date> validRange;

    @Schema(description = "详细信息")
    private RawVo raw;
}
